name: pre-commit run_id: commands[2] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-GmeZ/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 3498148530 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env OLM_TIMER1: 3000 env OLM_TIMER2: 2000 env TOX_ENV_NAME: pre-commit env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit metadata pid: 29197 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin/*:sh:cpan:sudo:which:fixCIcentOS8reposMirrors.sh cmd: pre-commit run --all-files --show-diff-on-failure exit_code: 1 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. [INFO] Initializing environment for https://github.com/perltidy/perltidy. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/perltidy/perltidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Failed - hook id: trailing-whitespace - exit code: 1 - files were modified by this hook Fixing tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py Tabs remover.............................................................Passed autopep8.................................................................Failed - hook id: autopep8 - files were modified by this hook perltidy.................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/tests/transportpce_tests/1.2.1/test01_portmapping.py b/tests/transportpce_tests/1.2.1/test01_portmapping.py index ecee1540..687ba68c 100644 --- a/tests/transportpce_tests/1.2.1/test01_portmapping.py +++ b/tests/transportpce_tests/1.2.1/test01_portmapping.py @@ -124,9 +124,9 @@ class TransportPCEPortMappingTesting(unittest.TestCase): self.assertCountEqual( [{'supporting-port': '1', 'supporting-circuit-pack-name': '1/0/1-PLUG-NET', 'logical-connection-point': 'XPDR1-NETWORK1', 'port-direction': 'bidirectional', - 'connection-map-lcp': 'XPDR1-CLIENT1', 'port-qual': 'xpdr-network', - 'lcp-hash-val': 'OSvMgUyP+mE=', 'xpdr-type': 'tpdr', 'rate' : '0', - 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], + 'connection-map-lcp': 'XPDR1-CLIENT1', 'port-qual': 'xpdr-network', + 'lcp-hash-val': 'OSvMgUyP+mE=', 'xpdr-type': 'tpdr', 'rate': '0', + 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], response['mapping']) def test_11_xpdr_portmapping_NETWORK2(self): @@ -135,9 +135,9 @@ class TransportPCEPortMappingTesting(unittest.TestCase): self.assertCountEqual( [{'supporting-port': '1', 'supporting-circuit-pack-name': '1/0/2-PLUG-NET', 'logical-connection-point': 'XPDR1-NETWORK2', 'port-direction': 'bidirectional', - 'connection-map-lcp': 'XPDR1-CLIENT3', 'port-qual': 'xpdr-network', - 'lcp-hash-val': 'OSvMgUyP+mI=', 'xpdr-type': 'tpdr', 'rate' : '0', - 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], + 'connection-map-lcp': 'XPDR1-CLIENT3', 'port-qual': 'xpdr-network', + 'lcp-hash-val': 'OSvMgUyP+mI=', 'xpdr-type': 'tpdr', 'rate': '0', + 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], response['mapping']) def test_12_xpdr_portmapping_CLIENT1(self): @@ -146,10 +146,10 @@ class TransportPCEPortMappingTesting(unittest.TestCase): self.assertCountEqual( [{'supporting-port': 'C1', 'supporting-circuit-pack-name': '1/0/C1-PLUG-CLIENT', - 'logical-connection-point': 'XPDR1-CLIENT1', 'port-direction': 'bidirectional', - 'connection-map-lcp': 'XPDR1-NETWORK1', 'port-qual': 'xpdr-client', - 'lcp-hash-val': 'AO9UFkY/TLYw', 'xpdr-type': 'tpdr', 'rate' : '0', - 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], + 'logical-connection-point': 'XPDR1-CLIENT1', 'port-direction': 'bidirectional', + 'connection-map-lcp': 'XPDR1-NETWORK1', 'port-qual': 'xpdr-client', + 'lcp-hash-val': 'AO9UFkY/TLYw', 'xpdr-type': 'tpdr', 'rate': '0', + 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], response['mapping']) def test_13_xpdr_portmapping_CLIENT2(self): @@ -158,10 +158,10 @@ class TransportPCEPortMappingTesting(unittest.TestCase): self.assertCountEqual( [{'supporting-port': 'C2', 'supporting-circuit-pack-name': '1/0/C2-PLUG-CLIENT', - 'logical-connection-point': 'XPDR1-CLIENT2', 'port-direction': 'bidirectional', - 'port-qual': 'xpdr-client', - 'lcp-hash-val': 'AO9UFkY/TLYz', 'xpdr-type': 'tpdr', 'rate' : '0', - 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], + 'logical-connection-point': 'XPDR1-CLIENT2', 'port-direction': 'bidirectional', + 'port-qual': 'xpdr-client', + 'lcp-hash-val': 'AO9UFkY/TLYz', 'xpdr-type': 'tpdr', 'rate': '0', + 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], response['mapping']) def test_14_xpdr_portmapping_CLIENT3(self): @@ -170,10 +170,10 @@ class TransportPCEPortMappingTesting(unittest.TestCase): self.assertCountEqual( [{'supporting-port': 'C3', 'xpdr-type': 'tpdr', 'supporting-circuit-pack-name': '1/0/C3-PLUG-CLIENT', - 'logical-connection-point': 'XPDR1-CLIENT3', - 'connection-map-lcp': 'XPDR1-NETWORK2', 'port-direction': 'bidirectional', - 'port-qual': 'xpdr-client', 'lcp-hash-val': 'AO9UFkY/TLYy', 'rate' : '0', - 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], + 'logical-connection-point': 'XPDR1-CLIENT3', + 'connection-map-lcp': 'XPDR1-NETWORK2', 'port-direction': 'bidirectional', + 'port-qual': 'xpdr-client', 'lcp-hash-val': 'AO9UFkY/TLYy', 'rate': '0', + 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], response['mapping']) def test_15_xpdr_portmapping_CLIENT4(self): @@ -182,9 +182,9 @@ class TransportPCEPortMappingTesting(unittest.TestCase): self.assertCountEqual( [{'supporting-port': 'C4', 'xpdr-type': 'tpdr', 'supporting-circuit-pack-name': '1/0/C4-PLUG-CLIENT', - 'logical-connection-point': 'XPDR1-CLIENT4', 'port-direction': 'bidirectional', - 'port-qual': 'xpdr-client', 'lcp-hash-val': 'AO9UFkY/TLY1', 'rate' : '0', - 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], + 'logical-connection-point': 'XPDR1-CLIENT4', 'port-direction': 'bidirectional', + 'port-qual': 'xpdr-client', 'lcp-hash-val': 'AO9UFkY/TLY1', 'rate': '0', + 'port-admin-state': 'InService', 'port-oper-state': 'InService'}], response['mapping']) def test_16_xpdr_device_disconnection(self): diff --git a/tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py b/tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py index bb266b64..225724af 100644 --- a/tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py +++ b/tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py @@ -75,14 +75,14 @@ class TransportPCERendererTesting(unittest.TestCase): 'xpdr-type': 'tpdr', 'supporting-port': '1', 'connection-map-lcp': 'XPDR1-CLIENT1', 'port-oper-state': 'InService', 'rate': '0', 'port-admin-state': 'InService', 'lcp-hash-val': 'OSvMgUyP+mE=', 'supporting-circuit-pack-name': '1/0/1-PLUG-NET', - 'port-qual': 'xpdr-network'}, + 'port-qual': 'xpdr-network'}, response['nodes'][0]['mapping']) self.assertIn( {'logical-connection-point': 'XPDR1-CLIENT1', 'port-direction': 'bidirectional', 'xpdr-type': 'tpdr', 'supporting-port': 'C1', 'connection-map-lcp': 'XPDR1-NETWORK1', 'port-oper-state': 'InService', 'rate': '0', 'port-admin-state': 'InService', 'lcp-hash-val': 'AO9UFkY/TLYw', 'supporting-circuit-pack-name': '1/0/C1-PLUG-CLIENT', - 'port-qual': 'xpdr-client'}, + 'port-qual': 'xpdr-client'}, response['nodes'][0]['mapping']) def test_05_service_path_create(self):